/*
 * package cn.tutu.blockchain.controller;
 * 
 * import java.util.List;
 * 
 * import javax.validation.Valid;
 * 
 * import org.springframework.beans.factory.annotation.Autowired; import
 * org.springframework.web.bind.annotation.RequestMapping; import
 * org.springframework.web.bind.annotation.RestController;
 * 
 * import cn.tutu.blockchain.common.MsgObj; import
 * cn.tutu.blockchain.machinebackups.entity.MachineBackups; import
 * cn.tutu.blockchain.machinebackups.service.MachineBackupsService;
 * 
 * @RequestMapping("/backups")
 * 
 * @RestController public class MachineBackupsController {
 * 
 * @Autowired private MachineBackupsService machineBackupsService;
 * 
 * @RequestMapping("/create") public MsgObj create(@Valid MachineBackups
 * machineBackups) { machineBackupsService.create(machineBackups); return
 * MsgObj.buildSuccessMsg(); }
 * 
 * public MsgObj getFileHash(String machineId) { List<String> fileHash =
 * machineBackupsService.getFileHashByMacId(machineId); MsgObj msg =
 * MsgObj.buildSuccessObj(fileHash); return msg; }
 * 
 * public MsgObj getRootHash(String machineId) { String rootHash =
 * machineBackupsService.getRootHashByMacId(machineId); MsgObj msg =
 * MsgObj.buildSuccessObj(rootHash); return msg; } }
 */